package com.ios.dto;

import com.ios.entity.DisablerLocation;

import com.ios.enums.LocationStateEnum;

/**
*@Author:WenTao
*@Description:残疾人用户gps信息记录中间类型
*@Date:22:09 2018/7/22
*/
public class DisablerLocationExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*残疾人用户地址信息*/
    private DisablerLocation disablerLocation;

    /*操作失败时的构造器*/
    public DisablerLocationExecution(LocationStateEnum stateEnum){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /*操作成功时的构造器*/
    public DisablerLocationExecution(LocationStateEnum stateEnum,DisablerLocation disablerLocation){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.disablerLocation = disablerLocation;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public DisablerLocation getDisablerLocation() {
        return disablerLocation;
    }

    public void setDisablerLocation(DisablerLocation disablerLocation) {
        this.disablerLocation = disablerLocation;
    }
}
